<?
$rela_path = "";

$DIR_URL = "http://www.acuityworld.com/en/";
//$DIR_URL = "http://localhost/se/web/en/";

require($rela_path . "common.php");
require($rela_path . "bin/db.php");
require($rela_path . "bin/fc.php");
$langname='trainer_activity';

?>




<?
$table = "course_trainer_info";

$Query = "select id, name, picture1, picture2, details, sex from $table where id=$id";
$r = myQuery($Query);
$trainer = $r[0][1];
$sex = $r[0][5];
require($rela_path . "language.php");
require("header.php");
if ($sex=="Mr."){

	$href="View his details";
}else{
	$href="View her details";

}

$table = "course_trainer_info";

$Query = "select id, name, picture1, picture2, details from $table where id=$id";
$r = myQuery($Query);
$trainer = $r[0][0];

$table1 = "course_activities";

$Query = "select id, name from $table1 where trainer='$trainer' And status='YES' order by publish_date desc";
$r1 = myQuery($Query);

?>








<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 

    <td width="186" valign="top"> 
      <?require("nav.php")?>
    </td>
    <td width="11"><img src="images/shim.gif" width="11" height="1"></td>
    <td valign="top"> 
      <?require("menu.php")?>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td align="right"><table width="100%" border="0">
              <tr> 
                <td height="50" class="header">&gt;&gt; Our Training Team</td>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td>Trainers from a variety of backgrounds will definitely provide you 
            the richest learning experience you have ever had. Click 
            <a href="trainer.php">here</a> to know our trainer list.</td>
        </tr>
      </table>
      <br>
      <br> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td><strong><font size="3"><?=$r[0][1]?></font></strong></td><td><?if ($r1) echo "<div align=right><a href='trainer_detail.php?id=$id'>$href</a></div>"?></td>
        </tr>
      </table>
      <br> 


	  
	  <table width="95%" border="0" align="center" cellpadding="3" cellspacing="6">
        <tr valign="top"> 
          <td width="24%">
		  
		  
		  <div align="center">
		  
		  <a href="#" onClick="newWin('zoom.php?pic=<?=urlEncode($PIC_DIR . "$table/" . $r[0][2])?>',770,500)">		  
		  <?=showPic($PIC_DIR . "$table/sm_" . $r[0][2],"")?> 
		  </a>

		  <a href="#" onClick="newWin('zoom.php?pic=<?=urlEncode($PIC_DIR . "$table/" . $r[0][3])?>',770,500)">
		  <?=showPic($PIC_DIR . "$table/sm_" . $r[0][3],"")?> 
		  </a>		 


			  </div>
			  
			  
			  
			  </td>
          <td width="76%">

			<?for ($i=0;$i<count($r1);$i++){?>
              <br>
              <a href="javascript:Redirect('trainer_activities.php?id=<?=$r1[$i][0]?>',2)"><?=$r1[$i][1]?></a><br>
			 <?}?> 

		</td>
        </tr>
      </table>


      <br> <br></td>
    <td width="11"><img src="images/shim.gif" width="11" height="1"></td>
    <td width="173" valign="top">
	
	
<?require("list.php")?>	 
	  
	  
    </td>

  </tr>
</table>





<?require("footer.php")?>	